package com.osgc.rf.np.url.dao;

public class Page {
	int total = 0;
	int  page = 0;
	public Page(int total,int page) {
		this.total = total;
		this.page =page;
	} 
	public int getTotal() {
		return total;
	}
	public int getPage() {
		return page;
	}
	public int getPrev() {
		if(page>1)
			return page-1;
		return 0;
	}
	public int getNext() {
		if(page<total)
			return page+1;
		return 0;
	}
}
